import { api } from '@/api/api'
import http from '@/utils/request'
//获取主页内容
function homeDataReq(count, limitNum) {
  return http({
    method: 'get',
    url: api.getProApi,
    params: { count, limitNum },
  })
}
//获取轮播图
function bannerReq() {
  return http({
    method: 'get',
    url: api.bannerApi,
  })
}
function searchReq(keyword) {
  return http({
    method: 'get',
    url: api.searchApi,
    params: { keyword },
  })
}

export { homeDataReq, bannerReq, searchReq }
